package service;

import java.util.List;

import dao.UserAddressDao;
import entity.UserAddress;

public class UserAddressService {
	UserAddressDao userAddressDao =new UserAddressDao();
	public List<UserAddress> getUserAddressesById(int addressId){
	return userAddressDao.getUserAddressesById(addressId);
	}
	
	public UserAddress getUserAddressById(int addressId)
	{
		return userAddressDao.getUserAddressById(addressId);
	}
	
	//根据用户id获取他的所有的地址
	public List<UserAddress> getUserAllAddrByUserId(int userId){
		return userAddressDao.getUserAllAddrByUserId(userId);
	}
}
